package com.nuoniu.sibanyun.service.cms.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.nuoniu.sibanyun.entity.cms.CmsArticleType;
import com.nuoniu.sibanyun.mapper.cms.CmsArticleTypeMapper;
import com.nuoniu.sibanyun.service.cms.ICmsArticleTypeService;
import com.nuoniu.sibanyun.userThread.UserThreadLocal;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * <p>
 * 文章分类管理 服务实现类
 * </p>
 *
 * @author 小啊刚
 * @since 2022-06-17
 */
@Service
public class CmsArticleTypeServiceImpl extends ServiceImpl<CmsArticleTypeMapper, CmsArticleType> implements ICmsArticleTypeService {

    @Override
    public List<CmsArticleType> getList() {
        QueryWrapper wrapper = new QueryWrapper();
        wrapper.eq("company_id", UserThreadLocal.get().getCompanyId());
        return list(wrapper);
    }
}
